{extend name="public:member" /}
{block name="content"}
<div class="page-header">
	<h1>
		{$breadcrumb1}
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			{$breadcrumb2}
		</small>
	
	</h1>
</div>
<div class="row">
	<div class="col-xs-12">	
		<div class="form-horizontal">	
		
			
			
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-left">  旧密码 </label>
			<div class="col-sm-5">
				<div class="clearfix">
					<input name="old_pwd" class="col-xs-10 col-sm-10 form-control" placeholder="旧密码"  value="" type="password">
				</div>
			</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-left">  新密码 </label>
			<div class="col-sm-5">
				<div class="clearfix">
					<input name="new_pwd" class="col-xs-10 col-sm-10 form-control" placeholder="新密码" value="" type="password">
				</div>
			</div>
			</div> 
			
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-left">  新密码确认 </label>
			<div class="col-sm-5">
				<div class="clearfix">
					<input name="new_pwd2" class="col-xs-10 col-sm-10 form-control" placeholder="新密码确认" value="" type="password">
				</div>
			</div>
			</div> 
			
		</div>
		<div class="form-group">
			<label class="col-sm-1 control-label no-padding-left"> </label>	
			<div class="col-sm-11">
				<button form="form" type="submit" id="send"  class="btn btn-sm btn-primary">提交</button>		
			</div>
		</div>
	</div>
</div>
{/block}
{block name="javascript"}
<script>

$('#send').click(function(){
	$.post(
		"{:url('member/password')}",
		$('input[type=\'password\']'),
		function(d){
			
			if(d.error){
				art.dialog({
					content:d.error,
					lock: true,
					ok: function () {}				    
				});	
			}else{
				art.dialog({
					content:d.success,
					lock: true,
					ok: function () {}				    
				});
			}
			
			
		}
	);
});
</script>	
{/block}